package com.chen.mapper;

import com.chen.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface StudentMapper {
    /**
     * 新增学生
     * @param student
     * @return
     */
    Integer addStudent(Student student);

    /**
     * 根据学生姓名查询
     * @param student
     * @return
     */

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    Integer deleteById(Integer id);

    /**
     * 查询所有
     * @return
     */
    List<Student> selectAll();

    /**
     * 根据id修改
     * @param student
     * @return
     */
    Integer updateById(Student student);

    Student selectById(Integer id);

    /**
     * 条件查询
     * @param studentDto
     * @return
     */
    List<Student> selectByCondition(Student studentDto);

    Student selectBySId(String Sid);
}
